Function Outlining

نویسندگان

  • Peng Zhao
  • José Nelson Amaral
چکیده

Large functions that are frequently executed, i.e. hot, are common in non-numeric applications. These functions present challenges to modern compilers not only because they require more time and resources for compilation, but also because they might degrade runtime performance by preventing optimizations such as function inlining. Fortunately, often large portions of the code in hot functions are rarely executed, i.e. cold. This paper describes a function outlining technique to split cold regions out of the hot host function so that these functions become smaller and more amenable for other optimizations. Unlike other work, our function outlining occurs in the very early phase in a compiler backend. This early outlining will enable more aggressive optimization in the down-stream phases of the compilation, such as inlining and code placement. We describe challenges to function outlining transformations and our solutions. We found that, with a carefully selected strategy, function outlining reduces the sizes of large hot functions significantly (up to 97% and 39% in average) without hurting performance. This is a very promising starting-point for potential client optimizations such as partial function inlining and code placement.

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Body outlining using Tc-99m filled flood source for lymphoscintigraphy imaging

  Introduction: In the current study, we evaluated the feasibility of body outlining using Tc-99m filled flood source for lymphoscintigraphy imaging. Methods: 80 patients were included in the study. Sentinel node mapping was done using Tc-99m Antimony sulfide colloid. For outlining the body a Tc-99m filled flood source was used which was placed behind or lateral to t...

متن کامل

Code and Data Outlining

In this dissertation we investigate compiler techniques to address the performance problems caused by heterogeneous execution frequency of code in the same function and heterogeneous access pattern of fields in the same data structure. These heterogeneous characteristics are bad for performance. On one hand, it is frequent that instructions in the same function have very different execution fre...

متن کامل

Optimization of Longwall Panel Location with Regards to the Gradient of Coal Seams (TECHNICAL NOTE)

The paper begins by outlining the role and importance of coal as a source of energy and in the steel industry. It briefly describes the longwall method of working together with the conventional machinery used in the method. A mathematical model is then proposed that shows the relationship between the gradient of the coal seam, that of the face and the entries to the panel. Determination of a mo...

متن کامل

Exploring Relationships Between Field (In)dependence, Multiple Intelligences, and L2 Reading Performance Among Iranian L2 Learners

L2 learners’ individual differences are crucial factors that deserve attention in L2 education. Focusing on 2 main areas of individual differences (i.e., field (in)dependence and multiple intelligences), this study explored their relationships with L2 reading performance. Participants were 64 TEFL undergraduates and postgraduates. To assess the participats’ degree of field (in)dependence and mu...

متن کامل

Viewing functions as token sequences to highlight similarities in source code

The detection of similarities in source code has applications not only in software re-engineering (to eliminate redundancies) but also in software plagiarism detection. This latter can be a challenging problem since more or less extensive edits may have been performed on the original copy: insertion or removal of useless chunks of code, rewriting of expressions, transposition of code, inlining ...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 2010